From 56a693ebdcc47cce029c9cc1bba0f75d3c669959 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Mon, 6 Jul 2026 19:37:42 +0200 Subject: [PATCH] shellMountOperation: Add missing docstrings For some reason, eslint trips up with non-exported classes with a static initializer. Add the missing docs that somehow make it happy. Part-of: (cherry picked from commit 46a3ec66913df94da6da5661cb3c090f28ce6253) --- js/ui/shellMountOperation.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/js/ui/shellMountOperation.js b/js/ui/shellMountOperation.js index aa180baf1..05a9a5a23 100644 --- a/js/ui/shellMountOperation.js +++ b/js/ui/shellMountOperation.js @@ -23,6 +23,12 @@ const WORK_SPINNER_ICON_SIZE = 16; const REMEMBER_MOUNT_PASSWORD_KEY = 'remember-mount-password'; /* ------ Common Utils ------- */ + +/** + * @param {ModalDialog.ModalDialog} dialog + * @param {string[]} oldChoices + * @param {string[]} choices + **/ function _setButtonsForChoices(dialog, oldChoices, choices) { const buttons = []; let buttonsChanged = oldChoices.length !== choices.length; @@ -42,6 +48,10 @@ function _setButtonsForChoices(dialog, oldChoices, choices) { dialog.setButtons(buttons); } +/** + * @param {Dialog.MessageDialogContent} content + * @param {string} message + **/ function _setLabelsForMessage(content, message) { const labels = message.split('\n'); -- 2.39.5